import _import from "../_import";
import { RouterMeta, routerForLoop } from "../app";
const config: any = {
    path: "town",
    name: "Town"
};
export default routerForLoop(
    [
        {
            path: "home",
            // component: _import("module-manage/src/home/index.vue"),
            component: _import("module-manage/src/norm-list/index.vue"),
            name: "ModuleManageHome",
            aliasName: "ModuleManageList",
            meta: {
                title: "表单模板",
                requiresAuth: true,
                isMenu: true,
                roles: ["ModuleManageTownHome"]
            } as RouterMeta
        },
        {
            path: "form",
            // component: _import("module-manage/src/form/index.vue"),
            component: _import("module-manage/src/norm-form/index.vue"),
            name: "ModuleManageForm",
            meta: {
                title: "表单详情",
                requiresAuth: true,
                isMenu: false,
                roles: ["ModuleManageTownHome"]
            } as RouterMeta
        },
        {
            path: "query/:type",
            component: _import("module-manage/src/query/index.vue"),
            name: "ModuleManageQuery",
            meta: {
                title: "查看表单",
                requiresAuth: true,
                isMenu: false
            } as RouterMeta
        },
        {
            path: "declare-list",
            component: _import("module-manage/src/declare-list/town.vue"),
            name: "DeclareList",
            meta: {
                title: "上报列表",
                requiresAuth: true,
                isMenu: true
            } as RouterMeta
        },
        {
            path: "created-all",
            component: _import("module-manage/src/collection-task/town/created-all.vue"),
            name: "CreatedAllList",
            meta: {
                title: "我下发的",
                requiresAuth: false,
                isMenu: false
            } as RouterMeta
        },
        {
            path: "created",
            component: _import(
                "module-manage/src/collection-task/town/created.vue"
            ),
            name: "CreatedList",
            meta: {
                title: "任务列表",
                requiresAuth: true,
                isMenu: true
            } as RouterMeta
        },
        {
            path: "received",
            component: _import(
                "module-manage/src/collection-task/town/received.vue"
            ),
            name: "ReceivedList",
            meta: {
                title: "待我审批",
                requiresAuth: true,
                isMenu: true
            } as RouterMeta
        },
        {
            path: "detail-all",
            component: _import(
                "module-manage/src/collection-task/town/detail-all.vue"
            ),
            name: "CreatedAndReceivedDetailAllList",
            meta: {
                title: "任务数据",
                requiresAuth: true,
                isMenu: true
            } as RouterMeta
        },
        {
            path: "detail",
            component: _import(
                "module-manage/src/collection-task/town/detail.vue"
            ),
            name: "CreatedAndReceivedDetailList",
            meta: {
                title: "详情",
                requiresAuth: true,
                isMenu: true
            } as RouterMeta
        },
        {
            path: "share-data",
            component: _import(
                "module-manage/src/collection-task/town/share-data.vue"
            ),
            name: "ShareData",
            meta: {
                title: "数据共享",
                requiresAuth: true,
                isMenu: true
            } as RouterMeta
        },
        {
            path: "fillIn-form",
            component: _import("module-manage/src/fill-in-form/index.vue"),
            name: "FillInForm",
            meta: {
                title: "我的填报",
                requiresAuth: true,
                isMenu: false
            } as RouterMeta
        },
        {
            path: "fillIn-form/fill-in",
            component: _import("module-manage/src/fill-in-form/fill-in.vue"),
            name: "FillInFormFillIn",
            meta: {
                title: "填报",
                requiresAuth: true,
                isMenu: false
            } as RouterMeta
        },
        {
            path: "fillIn-form/detail",
            component: _import("module-manage/src/fill-in-form/detail.vue"),
            name: "FillInFormDetail",
            meta: {
                title: "查看",
                requiresAuth: true,
                isMenu: false
            } as RouterMeta
        },
        {
            path: "collection-task/fill-in",
            component: _import("module-manage/src/collection-task/town/fill-in.vue"),
            name: "DeclareFillIn",
            meta: {
                title: "填报",
                requiresAuth: true,
                isMenu: true
            } as RouterMeta
        },
        {
            path: "table-detail/detail",
            component: _import("module-manage/src/collection-task/town/tableDetail.vue"),
            name: "TableDetail",
            meta: {
                title: "查看",
                requiresAuth: true,
                isMenu: true
            } as RouterMeta
        },
        {
            path: "task-handle",
            component: _import(
                "module-manage/src/collection-task/town/task-handle.vue"
            ),
            name: "TaskHandleList",
            meta: {
                title: "任务处置",
                requiresAuth: true,
                isMenu: true
            } as RouterMeta
        }
    ],
    config
);
